const goodController = require("../controllers/good");

module.exports = (app) => {
  // 商品查
  app.get("/good", goodController.getAllGood);
  app.get("/good/:id", goodController.getGoodById);
  // 分类分页查询商品
  app.post("/good/filter", goodController.getFilterGood);
  // 根据id查询sku
  app.get("/user/sku/:id", goodController.getSkuById);

  // 标签查
  app.get("/tag", goodController.getAllTag);
  app.get("/tag/:id", goodController.getTagById);
  app.get("/good/tag/:tagId", goodController.getGoodByTagId);
};
